import React, { Component , Fragment } from 'react';
import './style.css'
class CssTest extends Component {
    constructor(props) {
        super(props);
        this.state = {
            show : true
        }
        this.handleToggole = this.handleToggole.bind(this)
    }
    render() {
        return (
            <Fragment>
                <div className={this.state.show ? 'show' : 'hide'}>AxiosTest</div>
                <button onClick={this.handleToggole}>Toggole</button>
            </Fragment>
            
        )
    }
    
    handleToggole(){
        this.setState({
            show:!this.state.show
        })
    }
    
}

export default CssTest;